package com.serviceprovider.business.module.order.controller;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.order.model.OrderAttributeType;
import com.serviceprovider.business.module.order.valueobjects.OrderAttributeVO;
import com.serviceprovider.business.module.order.valueobjects.OrderFilterConditionVO;

//~--- JDK imports ------------------------------------------------------------

import java.util.ArrayList;
import java.util.List;

public class OrderSettingsFieldForm {
    boolean                active;
    int                    id;
    String                 list;
    String                 name;
    List<OrderAttributeVO> type;
    OrderAttributeType     types;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public OrderAttributeType getTypes() {
        return types;
    }

    public void setTypes(OrderAttributeType types) {
        this.types = types;
    }

    public List<OrderAttributeVO> getType() {
        return type;
    }

    public void setType(List<OrderAttributeVO> type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getList() {
        return list;
    }

    public void setList(String list) {
        this.list = list;
    }

    public OrderAttributeVO convertToVO() {
        OrderAttributeVO result = new OrderAttributeVO();

        result.setActive(this.active);
        result.setId(this.id);
        result.setName(this.getName());
        result.setType(this.types);

        // List<OrderFilterConditionVO> list=new ArrayList<OrderFilterConditionVO>();
        return result;
    }
}



